package demo.bean;
 
public class Entry<K, V> {
    private K key = null;
    private V value = null;
 
    public Entry(K key, V value) {
        this.key = key;
        this.value = value;
    }
 
    @Override
    public String toString() {
        return String.format("[%s=%s]", this.key, this.value);
    }
 
    /**
     * @return the key
     */
    public K getKey() {
        return key;
    }
 
    /**
     * @param key
     *            the key to set
     */
    public void setKey(K key) {
        this.key = key;
    }
 
    /**
     * @return the value
     */
    public V getValue() {
        return value;
    }
 
    /**
     * @param value
     *            the value to set
     */
    public void setValue(V value) {
        this.value = value;
    }
 
}